package com.tt.payee.business;

import lombok.Data;

/**
 * @author  zhaochongsen
 * @Description
 * @date  2020/5/15 17:00
 */
@Data
public class AbortException extends RuntimeException {

    private static final long serialVersionUID = 3034121940056795549L;

    private Integer code;
    private String msg;
    
    public AbortException(String message) {
        super(message);

        BusinessStatus fail = BusinessStatus.DATA_ERROR;

        this.code = fail.getCode();
        this.msg = message;
    }
}
